package api

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type BaseController struct {
}

func (con BaseController) success(ctx *gin.Context) {
	ctx.String(http.StatusOK, "success")
}
func (con BaseController) error(ctx *gin.Context) {
	ctx.String(http.StatusBadRequest, "failed")
}
